<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s"  uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style type="text/css">
#div1{
margin: 0px auto;
padding: 0px;
height: auto;
width: 380px;
}
</style>
<title>青鸟租房系统</title>
</head>
<body>

<s:div id="div1">
<img src="image/logo.gif"/><br/>
<h1>
<s:text name="%{getText('欢迎')}"></s:text>${user.name}
</h1><br/>
<s:form action="showhouse.action">
<s:submit value="%{getText('转到主页面')}"></s:submit>
</s:form>
<div style="margin: 0px auto;padding: 0px;width: 980px;height: auto;">
	<s:iterator value="#session.ulist">
  			<table class="house_table" cellpadding="8" cellspacing="1" width="100%">
  			<tr>
  				<td rowspan="3" width="100"><img src="image/thumb_house.gif"/></td>
  				<td class="td_title" width="620"><s:property value="title"/></td>
  				<td rowspan="3"><s:property value="typet.name"/></td>
  				<td rowspan="3"><s:property value="price"/>￥元/每月</td>
  			</tr>
  			<tr>
  				<td><s:property value="street.district.name"/>区<s:property value="street.name"/>，
  				面积<s:property value="floorage"/>平米</td>
  			</tr>
  			<tr>
  				<td>联系方式：<s:property value="contact"/></td>
  			</tr>
			</table>
			<hr/>
	</s:iterator>
	<s:a href="manager.action?pageno=1">首页</s:a>
	<s:a href="manager.action?pageno=%{pageno-1}">上一页</s:a>
	<s:a href="manager.action?pageno=%{pageno+1}">下一页</s:a>
	<s:a href="manager.action?pageno=%{pagecount}">尾页</s:a>
	</div>

</s:div>
</body>
</html>